package com.cola.demo1.dao.impl;

import com.cola.demo1.dao.UserDao;
import org.springframework.stereotype.Repository;

/**
 * @Grup:com.cola.demo2.dao.impl
 * @Auther:cola
 * @Data:2021/4/18-2021-04-23:46
 * @version:1.0
 */
//@Component
@Repository//代替Component,没有区别,语义更明确
public class UserDaoNormal implements UserDao {
    @Override
    public void add() {
        System.out.println("添加用户到数据库中.....");
    }
}
